{# The frame every drawn card sits in: border, title, the line under it, and the click that opens it larger in the one dialog. One copy, so the kinds cannot drift apart. ``url`` is the card's own address; in the thread the frame opens ``url?size=large``, and in the dialog (``large``) it is just the card. #} {# ``fit``: as wide as what it holds, up to the answer's width (a table), rather than the fixed width a chart draws into. #} {% macro card_frame(kind, title, subtitle, url, large=False, fit=False) %}
No data in this window.
{% endif %} {% endcall %} {% endmacro %} {# A figure as the card's unit reads it: money arrives in cents. #} {% macro amount(value, unit) %}{{ value|int|money if unit == "money" else "{:,}".format(value|round|int) }}{% endmacro %}